<div class="am-u-sm-12 widget main-w">
	<ol class="am-breadcrumb">
		<li><a href="{:url('/admin/index')}">首页</a></li>
		<li><a href="{:url('/admin/menu/index')}">系统管理</a></li>
		<li><a href="{:url('/admin/menu/index')}">菜单</a></li>
		<li class="am-active">{$item.name?菜单编辑:添加菜单}</li>
	</ol>
	<div class="am-u-sm-12" style="padding: 40px;">
		<div class="am-u-sm-12" style="background: #fff;">
		<form class="am-form-inline tpl-form-border-form" id="addallmenu" data-check="1" action="{:url(request()->action())}" data-ajax="1">
				<input type="hidden" name="id" value="{$item.id}" />
				<div style="padding：30px;">
					<div class="am-u-sm-12" style="padding-bottom: 10px;">
						<div class="am-u-sm-12">
							<label for="user-name" class="am-u-sm-2 am-form-label cl-p" style="line-height: 35px;" >菜单名： </label>
							<div class="am-form-group am-u-sm-10 cl-p">
								<div class="am-u-sm-10 cl-p">
									<input type="text" class="tpl-form-input" data-check="require|" name="name" value="{$item.name}" style="line-height: 21px;" />
								</div>
								<div class="am-u-sm-2 hint" style="padding: 5px;">
									
								</div>
							</div>
						</div>
					</div>
					<div class="am-u-sm-12" style="padding-bottom: 10px;">
						<div class="am-u-sm-12">
							<label for="user-name" class="am-u-sm-2 am-form-label cl-p" style="line-height: 35px;">路径： </label>
							<div class="am-form-group am-u-sm-10 cl-p">
								<div class="am-u-sm-10 cl-p">
									<input type="text" class="tpl-form-input" data-check="require|" name="url" value="{$item.url}" style="line-height: 21px;" />
								</div>
								<div class="am-u-sm-2 hint" style="padding: 5px;"></div>
							</div>
							
						</div>
					</div>
					<div class="am-u-sm-12" style="padding-bottom: 10px;">
						<div class="am-u-sm-12">
							<label for="user-name" class="am-u-sm-2 am-form-label" style="padding: 0;line-height: 35px;">上级： </label>
							<div class="am-form-group am-u-sm-10 cl-p">
								<div class="am-u-sm-10 cl-p">
									<select name="pid">
										<option value="0"> 顶级
										{$pids}
									</select>
								</div>
								<div class="am-u-sm-2 hint" style="padding: 5px;"></div>
							</div>
						</div>
					</div>
					<div class="am-u-sm-12" style="padding-bottom: 10px;">
						<div class="am-u-sm-12">
							<label for="user-name" class="am-u-sm-2 am-form-label cl-p" style="line-height: 35px;">图标： </label>
							<div class="am-form-group am-u-sm-10 cl-p">
								<div class="am-u-sm-10 cl-p" >
									<input type="text" class="tpl-form-input" name="icon" value="{$item.icon}" style="line-height: 21px;" />
								</div>
								<div class="am-u-sm-2" style="padding: 5px;"></div>
							</div>
						</div>
					</div>
					<div class="am-u-sm-12" style="padding-bottom: 10px;">
						<div class="am-u-sm-12">
							<label for="user-name" class="am-u-sm-2 am-form-label cl-p" style="line-height: 35px;">状态： </label>
							<div class="am-form-group am-u-sm-10 cl-p">
								<div class="am-u-sm-10 cl-p">
									<select id="state" name="state">
										<option value="1">可用</option>
										<option value="9">禁用</option>
									</select>
								</div>
								<div class="am-u-sm-2 hint" style="padding: 5px;"></div>
							</div>
						</div>
					</div>
					<div class="am-u-sm-12" style="padding-bottom: 10px;">
						<div class="am-u-sm-12">
							<div class="am-u-sm-4"> &nbsp;</div>
							<div class="am-u-sm-4">
							<div id="addmenu" class="am-btn am-btn-primary am-radius" style="margin-top: -2px;">保存</div>
							<a id="closemenu" href="/admin/menu/index" class="am-btn am-btn-primary am-radius" style="margin-top: -2px;">取消</a>
							</div>
							<div class="am-u-sm-4"> &nbsp;</div>
						</div>
					</div>
				</div>
		</form>
		</div>
	</div> 
</div>